package com.hfy.admin.service;

import result.Result;

import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;

/**
 * @ author 韩
 * time: 2025/1/4 0:37
 */

public interface PostManagementService {
    Result pagePostsByFilters(Integer pageNum, Integer pageSize, String title, Integer topicId, LocalDateTime startTime, LocalDateTime endTime, Integer startLikeNum, Integer endLikeNum, Integer startCollectNum, Integer endCollectNum, Integer startViewNum, Integer endViewNum, Integer startWordNum, Integer endWordNum, String contentKey, Boolean isNameless, Boolean isDie);
    
    // 新增方法
    Result searchPosts(String type, String value, LocalDateTime startTime, LocalDateTime endTime);
    
    Result batchUpdateHot(List<Map<String, Object>> posts);
    
    Result resetPostsHot(List<Integer> postIds);
}
